import {systemRouter} from './system-router.js';
const routes = [
    {
        path: '/login',
        name: 'Login',
        component:()=> import('@/components/Views/Login.vue'),
    },
    {
        path: '/register',
        name: 'Register',
        component:()=> import('@/components/Views/Register.vue'),
    },
    {
        path: '/',
        name: 'NotFound',
        component:()=> import('@/components/Views/Login.vue'),
    },
    {
        path: '/about',
        name: 'about',
        meta: { requiresAuth: true },
        component:()=>import('@/components/Views/About.vue')
    },
    {
        path: '/success',
        name: 'Success',
        meta: { requiresAuth: false },
        component:()=>import('@/components/Views/Success.vue'),
        children:systemRouter
    },

];

export default routes;